using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Sispe.Entities
{
    public partial class RURAL:BaseEntity
    {
        public RURAL()
        {
            this.TRABAJADORs = new List<TRABAJADOR>();
        }

        [Key]
        public int IdRural { get; set; }

        [Display(Name = "CentroPoblado")]
        [Required(ErrorMessage = "El Centro Poblado es Requerido")]
        public string CentroPoblado { get; set; }

        [Display(Name = "Caserio")]
        [Required(ErrorMessage = "El Caserio es Requerido")]
        public string Caserio { get; set; }

        public virtual ICollection<TRABAJADOR> TRABAJADORs { get; set; }
    }
}
